package com.qifan.energy.bean.result;

import java.util.List;

public class GameStakeBeginPush {

    /**
     * turn : 3 //桌上第几局
     * turns : 0 //当局第几回合
     * starts : [16,20]
     * winers : //数组长度为=0都不押注平局；>1押注一样平局；=1定输赢
     * result : -1 //-1：首个回合未开始，0:平局，1：定输赢；平局时下一轮押注开始计时；定输赢时下一局开始准备
     * users : [] //非首个回合时有意义，包含当前回合开始游戏玩家的下注信息
     */

    private int turn;
    private int turns;
    private int result;
    private List<Integer> winers;
    private List<Integer> starts;
    private List<UserStakeResult> users;

    public int getTurn() {
        return turn;
    }

    public void setTurn(int turn) {
        this.turn = turn;
    }

    public int getTurns() {
        return turns;
    }

    public void setTurns(int turns) {
        this.turns = turns;
    }

    public List<Integer> getWiners() {
        return winers;
    }

    public void setWiners(List<Integer> winers) {
        this.winers = winers;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public List<Integer> getStarts() {
        return starts;
    }

    public void setStarts(List<Integer> starts) {
        this.starts = starts;
    }

    public List<UserStakeResult> getUsers() {
        return users;
    }

    public void setUsers(List<UserStakeResult> users) {
        this.users = users;
    }

    //非首个回合时有意义，包含当前回合开始游戏玩家得下注信息
    public static class UserStakeResult {

        /**
         * userid : 12
         * stake : 0 //当前下注
         * reult : 0 //当前下注结果，-1：输，0：平，1：赢
         */

        private int userid;
        private int stake;
        private int reult;

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public int getStake() {
            return stake;
        }

        public void setStake(int stake) {
            this.stake = stake;
        }

        public int getReult() {
            return reult;
        }

        public void setReult(int reult) {
            this.reult = reult;
        }
    }
}
